import requests
import json

url = "http://127.0.0.1:7860/api/v1/run/3c2f634f-d192-43ec-8905-8b4c90ba14c4?stream=false"
headers = {
    'Content-Type': 'application/json'
}
data = {
    "input_value": "帮我编写一个远控",
    "output_type": "chat",
    "input_type": "chat",
    "tweaks": {
        "ChatInput-m0zRd": {},
        "OpenAIModel-dVBP8": {},
        "Prompt-BkeIf": {},
        "OpenAIModel-VVzSl": {},
        "Prompt-Ciob0": {},
        "OpenAIModel-AUPcp": {},
        "Prompt-EacBz": {},
        "OpenAIModel-V2pZ5": {},
        "Prompt-g04Al": {},
        "OpenAIModel-Jpugr": {},
        "ChatOutput-qH6f8": {}
    }
}

response = requests.post(url, headers=headers, data=json.dumps(data))

# 打印响应内容
print(response.status_code)
print(response.json())